<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="app" uri="http://www.wanrenhui.com"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<%@include file="/res/include/base-head.jsp"%>
<%@include file="/res/include/jquery-easyui.jsp"%>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/res/js/pubUpgrade/pubUpgrade.js"></script>
</head>
<body>

	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'north',border:false,split:false">
	    	<form id="query-form" class="search_form clearfix">
	            <dl>
					<dt>(选填)要覆盖的推送ID</dt>
					<dd>
						<input name="overrideMsgId" id="overrideMsgId" type="text" class="txt" maxlength="16"/>
					</dd>
				</dl>
	            <p class="search_form_btn">
	            	<input type="button" value="确认推送" class="icon_serach" onclick="confirm()" />
	            </p>
	        </form>
	  	</div>
		<div data-options="region:'center',border:false">
			<table id="datagrid"
				data-options="url:'${pageContext.request.contextPath}/pub/upgrade/list',toolbar:'#toolbar'">
				<thead>
					<tr>
						<th data-options="field:'id',width:100">id</th>
						<th data-options="field:'key',width:200">键</th>
						<th
							data-options="field:'value',width:400,align:'center'">值</th>
						<th data-options="field:'remark',width:600,align:'center'">描述</th>
					</tr>
				</thead>
			</table>
		</div>
	</div>
	<script>
		function confirm(){
			var overrideMsgId=document.getElementById("overrideMsgId").value;
			admin.pubUpgrade.confirm(overrideMsgId);
		}
	</script>
</body>
</html>
